//@flow
import React, { Component } from 'react';
import Icon from "react-native-vector-icons/AntDesign";
import { TabProps } from "./tabProps";
import { Home } from "../../page/home/home";
import { Recommend } from "../../page/recommend/recommend";
import { Message } from "../../page/message/message";
import { ShoppingCart } from "../../page/shoppingCart/shoppingCart";
import { Mine } from "../../page/mine/mine";
const IconSize : number = 25;
export const Tabs : Array<TabProps> = [
    {
        screen	    :Home,
        badgeKey	:'home_badgekey',
        name        :'home',
        normalIcon  :<Icon name="home" size={IconSize}/>,
        selectedIcon:<Icon name="home" size={IconSize}/>,
        title       :'首页',
        path        :'/home',
        onPress	    :()=>{},
    },
    {
        screen	    :Recommend,
        badgeKey	:'recommend_badgekey',
        name        :'recommend',
        normalIcon  :<Icon name="home" size={IconSize}/>,
        selectedIcon:<Icon name="home" size={IconSize}/>,
        title       :'微淘',
        path        :'/recommend',
        onPress	    :()=>{},
    },
    {
        screen	    :Message,
        badgeKey	:'message_badgekey',
        name        :'message',
        normalIcon  :<Icon name="message1" size={IconSize}/>,
        selectedIcon:<Icon name="message1" size={IconSize}/>,
        title       :'消息',
        path        :'/message',
        onPress	    :()=>{},
    },
    {
        screen	    :ShoppingCart,
        badgeKey	:'shoppingCart_badgekey',
        name        :'shoppingCart',
        normalIcon  :<Icon name="shoppingcart" size={IconSize}/>,
        selectedIcon:<Icon name="shoppingcart" size={IconSize}/>,
        title       :'购物车',
        path        :'/shoppingCart',
        onPress	    :()=>{},
    },
    {
        screen	    :Mine,
        badgeKey	:'mine_badgekey',
        name        :'mine',
        normalIcon  :<Icon name="user" size={IconSize}/>,
        selectedIcon:<Icon name="user" size={IconSize}/>,
        title       :'我的',
        path        :'/mine',
        onPress	    :()=>{},
    }
]